package com.oracle.dao.impl;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.stereotype.Component;

import com.oracle.dao.StudentDao;
import com.oracle.model.Student;
@Component("studentDao")
public class StudentDaoImpl implements StudentDao{

	@Override
	public void save(Student student) {
		System.out.println(student+" mysql saved");
	}
	@PostConstruct
	public void befor(){
		System.out.println("befor");
	}
	@PreDestroy
	public void after(){
		System.out.println("after");
	}
	
}
